/*院校信息接口*/
import request from "@/utils/request";

//获取所有院校信息
export function getAllCollegeInfo(data){
    return request({
        url:'/College/getAllCollegeInfo',
        method:'post',
        data
    })
}

//根据college_id判断用户是否已收藏该院校
export function ifCollect(data){
    return request({
        url:'/College/ifCollect',
        method:'post',
        data
    })
}

//收藏院校
export function addCollect(data){
    return request({
        url:'/College/addCollect',
        method:'post',
        data
    })
}

//根据college_id获取某一院校的具体信息
export function getColInfoByColID(data){
    return request({
        url:'/College/getColInfoByColID',
        method:'post',
        data
    })
}

//获取我收藏的全部院校信息
export function getMyColByUserID(data){
    return request({
        url:'/College/getMyColByUserID',
        method:'post',
        data
    })
}

//取消收藏
export function cancelCollect(data){
    return request({
        url:'/College/cancelCollect',
        method:'post',
        data
    })
}

//根据类别和年份获取某一具体国家分数线信息
export function getGradesByYear(data){
    return request({
        url:'/College/getGradesByYear',
        method:'post',
        data
    })
}

//获取全部年份
export function getAllYears(data){
    return request({
        url:'/College/getAllYears',
        method:'post',
        data
    })
}

